import React from 'react';


import {Link} from 'react-router';

import '../assets/css/blog/cus.less';

class App extends React.Component {
    constructor(props) {
        super(props);
    }

    componentDidMount() {

    }

    gobak = ()=>{
        this.context.router.goBack();
    };

    render() {
        return (
            <div className="app_con">
                <p>写个什么</p>
                <p>
                    <Link to="/">返回</Link>
                    <button onClick={this.gobak}>返回</button>
                </p>
            </div>
        );
    }
}

App.contextTypes = {
    router: React.PropTypes.object
};

export default App;